<?php
/**
 * @page backend_config Backend Settings
 * 
 * These are some configurations for backend operations. You will also be prompted to enter this information at the time of installation.
 * 
 * @li <b>Admin %User</b> - This is your administrator username which you will use to singin to backend of the website.
 * @li <b>Admin Password</b> - This is your administrator password which you will use to signin to backend of the website.
 * @li <b>Site Name</b> - Whatever site name you specify here, it will be visible in outgoing emails/newsletters.
 * @li <b>Administrator's Email</b> - All administrative alerts are sent here, for example: bad content report or new user content added email.
 * @li <b>Website's Email</b> - Any outgoing email from your website will be generated from this email. Set as noreply@sitename.com or similar.
 * @li <b>Website URL</b> - The URL where you're installing this application.
 * @li <b>Website Time %Zone</b> - Used for matching application time with your desired timezone.
 * @li <b>Site Status</b> - This can be used when you want to turn off your website for performing maintenance.
 * @li <b>Offline Text</b> - This text/HTML block will be visible on website on all pages when your website is turned off using configuration above.
 * 
 */
 /**
 * $Id: config_keys.php 206 2012-05-22 11:08:08Z shrey $
 * 
 * This file can not be redistributed to anyone without the permission of Giga Promoters
 * Copyright 2005 - 2008, Giga Promoters
 * 						  608 Aggarwal Cyber Plaza
 *						  Netaji Subhash Place, Delhi - 110034
 *						  www.gigapromoters.com
 * 
 *
 * This is parent of parent class of a controller and should not be edited ever without permission.
 * @version 			$Rev: 206 $
 * @lastModifiedBy		$LastChangedBy: shrey $
 * @lastChanged			$Date: 2012-05-22 16:38:08 +0530 (Tue, 22 May 2012) $
 * @copyright 			Giga Promoters (www.gigapromoters.com)
 * 
 */
 //formatting for timezone starts here
	$timeZoneArr = Utility::getTimeZone();
	foreach($timeZoneArr as $identifierKey=>$timeZone)
	{
        if(!strlen($identifierKey))
        {
          $timeZone['label'] = __($timeZone['label']);
        }
		$newTimeZone[$identifierKey] = $timeZone['label'];
	}
	
	//formatting for timezone ends here

	$config[1] = array(
	
	'Backend' => array(

		'adminUser'     => array('label'=> __('Admin User'),
							     'after' => __('Username for Administrator\'s account'),
							     'validate' => array('rule'=>VALID_NOT_EMPTY,"required"=>true)),

		'adminPassword' => array('label'=> 'Admin Password',
								 'after' => __('Password for Administrator\'s account'),
								 'type' => 'password',
								'validate'=> array('rule'=>VALID_NOT_EMPTY,"required"=>true)),

		'siteName'      => array('label'=> __('Site Name'),
								 'text' => __('Sitename will be included inside Newsletters and other emails'),
								'validate' => array('rule'=>VALID_NOT_EMPTY,"required"=>true)),

		'email'         => array('label'=> 'Administrator\'s Email',
								 'after' => __('Important alerts will be sent to this email'),
								 'validate'=>array("rule"=>"email",'message'=>__("Please enter a valid email."),'required'=>true)),
		
		'websiteEmail'  => array('label'=> 'Website\'s Email',
								 'after' => __('Any outgoing email from the system will be generated from this email. Set as noreply@sitename.com or similar.'),
								 'required'=>true,'validate'=>array("rule"=>"email",'message'=>__("Please enter a valid email."),'required'=>true)),

		'siteUrl'       => array('label'=> 'Website URL',
								 'after' => __('Complete URL (no slash at end)'),
								 'required'=>true,'validate'=>array("rule"=>"url",'message'=>__("Please enter a valid url."),'required'=>true)),		

		'timezone'      => array('label'   => 'Website Time Zone',
								 'after'    => __('Select your timezone'),
								 'options' => $newTimeZone),
								 
		'siteStatus'=>array('label'=>'Site Status','options' => array('on'=>__('On'),'off'=>__('Off')),'after'=>__('Site on-off feature')),

		'siteOfflineText' => array('label'=>"Offline Text",'type'=>"textarea",'after'=>__("Text to be shown when site offline. You can add HTML content also.")),
								 
		)
	);

?>